]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: be sure to remove destroyed notifications from the notification stack
authorMarina Zhurakhinskaya <marinaz@redhat.com>
Sun, 19 Aug 2012 21:32:37 +0000 (17:32 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 20 Aug 2012 01:15:51 +0000 (21:15 -0400)
This allows us to correctly identify when the notification stack is empty.

js/ui/messageTray.js

index 5b0403a4c8eeaaecb79004371b8d2c63a76d8935..5958a873d32e14daac29d2b7c85b05e6882a1e66 100644 (file)
@@ -1285,6 +1285,8 @@ const SummaryItem = new Lang.Class({
                 notification.disconnect(stackedNotification.notificationDoneDisplayingId);
                 notification.disconnect(stackedNotification.notificationDestroyedId);
                 this._stackedNotifications.splice(i, 1);
+                if (notification.actor.get_parent() == this.notificationStack)
+                    this.notificationStack.remove_actor(notification.actor);
                 this._contentUpdated();
                 break;
             }